<?php
/**
 * Created by PhpStorm.
 * User: legion
 * Date: 2019/1/7
 * Time: 20:25
 */

namespace app\common\model;


use think\Model;

class LiveAccountModel extends Model
{
    protected $autoWriteTimestamp = true;

    public function company()
    {
        return $this->belongsTo('CompanyModel','company_id');
    }

    public function apply_live()
    {
        return $this->hasMany('ApplyLiveModel','account_id','id');
    }
}